<?php

require '../../../zb_system/function/c_system_base.php';

require '../../../zb_system/function/c_system_admin.php';

$zbp->Load();

$action='root';

if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}

if (!$zbp->CheckPlugin('Xd_touxiang')) {$zbp->ShowError(48);die();}

if($_GET['type'] == 'diy1' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy1.jpg');
			}}}
	$zbp->SetHint('good','&#x9759;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy2' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy2.jpg');
			}}}
	$zbp->SetHint('good','&#x9759;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy3' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy3.jpg');
			}}}
	$zbp->SetHint('good','&#x9759;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy4' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy4.jpg');
			}}}
	$zbp->SetHint('good','&#x9759;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy5' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy5.jpg');
			}}}
	$zbp->SetHint('good','&#x9759;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy6' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy6.jpg');
			}}}
	$zbp->SetHint('good','&#x9759;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy7' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy7.jpg');
			}}}
	$zbp->SetHint('good','&#x9759;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy8' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy8.jpg');
			}}}
	$zbp->SetHint('good','&#x9759;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy9' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy9.jpg');
			}}}
	$zbp->SetHint('good','&#x9759;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy10' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy10.jpg');
			}}}
	$zbp->SetHint('good','&#x9759;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy11' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy11.gif');
			}}}
	$zbp->SetHint('good','&#x52A8;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy12' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy12.gif');
			}}}
	$zbp->SetHint('good','&#x52A8;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy13' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy13.gif');
			}}}
	$zbp->SetHint('good','&#x52A8;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy14' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy14.gif');
			}}}
	$zbp->SetHint('good','&#x52A8;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy15' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy15.gif');
			}}}
	$zbp->SetHint('good','&#x52A8;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy16' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy16.gif');
			}}}
	$zbp->SetHint('good','&#x52A8;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy17' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy17.gif');
			}}}
	$zbp->SetHint('good','&#x52A8;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy18' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy18.gif');
			}}}
	$zbp->SetHint('good','&#x52A8;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy19' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy19.gif');
			}}}
	$zbp->SetHint('good','&#x52A8;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}

if($_GET['type'] == 'diy20' ){
	global $zbp;
	foreach ($_FILES as $key => $value) {
		if(!strpos($key, "_php")){
			if (is_uploaded_file($_FILES[$key]['tmp_name'])) {
				$tmp_name = $_FILES[$key]['tmp_name'];
				$name = $_FILES[$key]['name'];
				@move_uploaded_file($_FILES[$key]['tmp_name'], $zbp->usersdir . 'plugin/Xd_touxiang/touxiang/diy/diy20.gif');
			}}}
	$zbp->SetHint('good','&#x52A8;&#x6001;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x6210;&#x529F;');
	Redirect('./main.php?act=tup');
}


?>